#import <Foundation/Foundation.h>
#import <EventKit/EKEvent.h>

#import "framework/FWListViewDelegate.h"

#import "PICalStatus.h"
#import "PIAlarm.h"


@interface PICalListAccessRange : NSObject
{
    NSInteger start;
    NSInteger duration;
    UIColor* color;
}

@property (assign) NSInteger start;
@property (assign) NSInteger duration;
@property (retain) UIColor* color;


+ (PICalListAccessRange*)accessRangeWithStart:(NSInteger)start duration:(NSInteger)duration color:(UIColor*)color;
+ (PICalListAccessRange*)allDayAccessRange:(UIColor*)color;

- (BOOL)isAllDay;

@end


@interface PICalListAccess : NSObject <FWListViewDelegate>

@property (nonatomic, retain) NSMutableArray* additionalAlarms;


- (void)scheduleExtraAlarmForId:(NSString*)key atDate:(NSDate*)date type:(kPICalAlarmType)type;

@end
